package com.shou.domain.common;

import java.util.List;

/**
 * ClassName:IBaseRuleRepository
 * Project:yvt-rule
 * Package: com.sunlight.domain
 * Description
 *
 * @Author Nemo
 * @Create 2024/12/24 17:32
 * @Version 1.0
 */
public interface IBaseRepository {

    void deleteByIds(List<Integer> ids, String tableName);

    boolean checkIfRecordsExist(String tableName);

    void deleteAllByTableName(String tableName);

    boolean checkIfExistById(Integer id, String tableName);

    boolean checkIfExistByCode(String code, String tableName, Integer[] excludeIds);

    List<String> getColumnsByEnTableName(String enTableName);
}
